using System;
using System.Collections.Generic;
using System.Text;

using OrbitOne.Base.Utils;

namespace OrbitOne.Feed.Domain {
    /// <summary>
    /// Category constructs contain information about a category to which a feed or topic is associated.
    /// </summary>
    public class Category {
        #region Members :
        private String _name;
        private Uri _domain;
        #endregion Members 
        #region Ctor's :
        /// <summary>
        /// Initializes a new instance of the <see cref="T:Category"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        public Category(
            String name
            ) {

            this.Name = name;
        }
        #endregion Ctor's 
        #region Properties :
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public String Name {
            get { return _name; }
            set {
                ArgumentValidation.ArgumentNotNull("name", value);
                _name = value; 
            }
        }
        /// <summary>
        /// Gets or sets the domain. 
        /// This is anoptional attribute, domain, a string that identifies a categorization taxonomy. 
        /// </summary>
        /// <value>The domain.</value>
        public Uri Domain {
            get { return _domain; }
            set {
                ArgumentValidation.ArgumentNotNull("domain", value);
                _domain = value; 
            }
        }
        /// <summary>
        /// Gets a value indicating whether this instance has domain.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance has domain; otherwise, <c>false</c>.
        /// </value>
        public Boolean HasDomain {
            get { return this.Domain != null; }
        }
        #endregion Properties 
        #region Methods :
        #endregion Methods
    }
}
